FROM docker.m.daocloud.io/debian:trixie as trixie

RUN sed -i 's_deb.debian.org/debian_mirrors.bfsu.edu.cn/debian_g' /etc/apt/sources.list.d/debian.sources
RUN apt update && apt install -y \
    git pkg-config cmake gcc g++ make qtbase5-dev qtwebengine5-dev tree lsb-release \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]

FROM docker.1panel.dev/debian:bookworm as bookworm

RUN sed -i 's_deb.debian.org/debian_mirrors.bfsu.edu.cn/debian_g' /etc/apt/sources.list.d/debian.sources
RUN apt update && apt install -y \
    git pkg-config cmake gcc g++ make qtbase5-dev qtwebengine5-dev tree lsb-release \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]

FROM docker.1panel.dev/debian:bullseye as bullseye

RUN sed -i 's_deb.debian.org/debian_mirrors.bfsu.edu.cn/debian_g' /etc/apt/sources.list
RUN apt update && apt install -y \
    git pkg-config cmake gcc g++ make qtbase5-dev qtwebengine5-dev tree lsb-release \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]

FROM docker.1panel.dev/debian:buster as buster

RUN sed -i 's_deb.debian.org/debian_mirrors.bfsu.edu.cn/debian_g' /etc/apt/sources.list
RUN apt update && apt install -y \
    git pkg-config cmake gcc g++ make qtbase5-dev qtwebengine5-dev tree lsb-release \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]


# dtk base *-cmake-qt5

# dtk 5.5.x
FROM debian:bookworm-cmake-qt5 as bookworm-dtk5

RUN apt update && apt install -y \
    libdtkcommon-dev libdtkcore-dev libdtkgui-dev libdtkwidget-dev \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]

# dtk 5.2.2.5
FROM debian:bullseye-cmake-qt5 as bullseye-dtk5

RUN apt update && apt install -y \
    libdtkcore-dev libdtkgui-dev libdtkwidget-dev libdtkwm-dev \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]

# dtk 2.0.9
FROM debian:buster-cmake-qt5 as buster-dtk2

RUN apt update && apt install -y \
    libdtkcore-dev libdtkwidget-dev libdtkwm-dev \
    debhelper qttools5-dev-tools
RUN apt-get clean

CMD ["bash"]
